import request from '@/utils/request'

// 查询融资合同列表
export function listDealFinancingContract(query) {
  return request({
    url: '/financingContract/dealFinancingContract/list',
    method: 'get',
    params: query
  })
}

// 查询融资合同详细
export function getDealFinancingContract(id) {
  return request({
    url: '/financingContract/dealFinancingContract/' + id,
    method: 'get'
  })
}

// 保存融资合同
export function saveDealFinancingContract(data) {
  return request({
    url: '/financingContract/dealFinancingContract/save',
    method: 'post',
    data: data
  })
}

// 删除融资合同
export function delDealFinancingContract(id) {
  return request({
    url: '/financingContract/dealFinancingContract/' + id,
    method: 'delete'
  })
}

// 导出融资合同
export function exportDealFinancingContract(query) {
  return request({
    url: '/financingContract/dealFinancingContract/export',
    method: 'get',
    params: query
  })
}
